package br.gfca.lanhostfinder;

public class Main {

	/**
	 * @param args
	 * @throws InterruptedException 
	 */
	public static void main(String[] args) throws InterruptedException {
		String networkAddr = "192.168.254.";
		int pingTimeout = 250;
		boolean[] foundHosts = new boolean[255];
		int totalCycleTime = 60;
		String externalAppCommand = "put command here";
		int externalAppPollTime = 20;
		
		new Thread(new LANPoller(networkAddr, pingTimeout, foundHosts, totalCycleTime)).start();
		Thread.sleep(totalCycleTime * 1000);
		new Thread(new ExternalAppController( foundHosts, externalAppCommand, externalAppPollTime )).start();
	}
}